<?php


namespace App\Models\Select;

use App\Common\Libs\ArrayHelper;

class SalonSelect extends BaseSelect
{
    public static function getSelects($scene): array
    {
        $baseSelects = [
            'id',
            'salon_id',
            'user_id',
            'cover_url',
            'title',
            'address',
            'video',
            'description',
            'is_enable',
            'is_review',
            'start_at',
            'end_at',
            'created_at',
        ];

        $selects = [
            self::SELF_DETAIL => ArrayHelper::merge($baseSelects, [
                'user_description',
                'lng',
                'lat',
            ])
        ];
        return $selects[$scene] ?? $baseSelects;
    }
}
